if(!${input$entity}.world.isRemote())
    ${input$entity}.remove();